import request from '@/utils/request'

// 查询客户财务台账列表
export function listFinance(query) {
  return request({
    url: '/bill/finance/list',
    method: 'get',
    params: query
  })
}
export function matching() {
  return request({
    url: '/bill/finance/matching',
    method: 'get',
  })
}
// 查询客户财务台账详细
export function getFinance(id) {
  return request({
    url: '/bill/finance/' + id,
    method: 'get'
  })
}

// 新增客户财务台账
export function addFinance(data) {
  return request({
    url: '/bill/finance',
    method: 'post',
    data: data
  })
}

// 修改客户财务台账
export function updateFinance(data) {
  return request({
    url: '/bill/finance',
    method: 'put',
    data: data
  })
}

// 删除客户财务台账
export function delFinance(id) {
  return request({
    url: '/bill/finance/' + id,
    method: 'delete'
  })
}
